﻿using Myotragus.Data.Repositories;
using NHibernate;

namespace Myotragus.Data.RepositoryExtensions
{
  public static class RepositoryExtensions
  {
    public static ISession OpenSession(this IRepository @this)
    {
      return @this.Services.Resolve<ISessionFactoryAdapter>().OpenSession();
    }
  }
}
